blob: bc76bd3957cf1a3ed1d9ede0fac08ade22680ee7 [file] [log] [blame]
written by Mike Frysinger
nommu systems cannot fork() as the hardware cannot support
it. irattach uses it as a minor optimization, but it isnt
necessary for correct functioning of the utility. so add a
NO_FORK define so we nommu peeps can do CFLAGS="... -DNO_FORK=1
..." and use it in our embedded systems.
--- a/irattach/irattach.c
+++ b/irattach/irattach.c
@@ -397,7 +397,11 @@
/* Create a new instance for this other
* interface */
+#ifdef NO_FORK
+ pid = -1;
pid = fork();
/* If in the child */
if(!pid) {
/* Get the interface name */