Changeset 5986

Show
Ignore:
Timestamp:
03/29/10 16:25:15 (3 years ago)
Author:
Cyrus
Message:

appsd: Fix shutdown

Location:
luci2/appsd
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • luci2/appsd/Makefile

    r5971 r5986  
    1212$(BINARY): *.c 
    1313    $(CC) $(CFLAGS) $(SFLAGS) $(WFLAGS) $(LDFLAGS) $(BINFLAGS) -I.. -I../libubox -I../upsd -I../ubus -o $@ $+ 
    14     for i in $(MULTICALL); do ln -s $(BINARY) $$i; done 
     14    for i in $(MULTICALL); do ln -sf $(BINARY) $$i; done 
    1515 
    1616clean: 
  • luci2/appsd/shutdown.c

    r5983 r5986  
    2626#include <dirent.h> 
    2727#include <errno.h> 
     28#include <signal.h> 
    2829#include <sys/reboot.h> 
    2930#include <sys/mount.h> 
     
    4041    struct appsd_shutdown_list *list = NULL; 
    4142    chdir("/"); 
     43    signal(SIGHUP, SIG_IGN); 
    4244 
    4345    /* Stop all running processes */