Changeset 5986
- Timestamp:
- 03/29/10 16:25:15 (3 years ago)
- Location:
- luci2/appsd
- Files:
-
- 2 modified
-
Makefile (modified) (1 diff)
-
shutdown.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
luci2/appsd/Makefile
r5971 r5986 12 12 $(BINARY): *.c 13 13 $(CC) $(CFLAGS) $(SFLAGS) $(WFLAGS) $(LDFLAGS) $(BINFLAGS) -I.. -I../libubox -I../upsd -I../ubus -o $@ $+ 14 for i in $(MULTICALL); do ln -s $(BINARY) $$i; done14 for i in $(MULTICALL); do ln -sf $(BINARY) $$i; done 15 15 16 16 clean: -
luci2/appsd/shutdown.c
r5983 r5986 26 26 #include <dirent.h> 27 27 #include <errno.h> 28 #include <signal.h> 28 29 #include <sys/reboot.h> 29 30 #include <sys/mount.h> … … 40 41 struct appsd_shutdown_list *list = NULL; 41 42 chdir("/"); 43 signal(SIGHUP, SIG_IGN); 42 44 43 45 /* Stop all running processes */
