summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-28 10:21:19 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-28 10:21:19 +0800
commitf1f23a364ccf4902f6594fd6319182ca29ad5582 (patch)
tree83b4318468c5b046eb9095f95ea9272372273ac1
parent2343266b6d55f2adf16a6a54d00bcab50511f79e (diff)
downloadpttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.tar
pttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.tar.gz
pttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.tar.bz2
pttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.tar.lz
pttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.tar.xz
pttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.tar.zst
pttbbs-f1f23a364ccf4902f6594fd6319182ca29ad5582.zip
* use portable way (as defined in man) to alter signal handler
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4708 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--common/sys/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/sys/file.c b/common/sys/file.c
index da451280..2165e7b5 100644
--- a/common/sys/file.c
+++ b/common/sys/file.c
@@ -214,7 +214,7 @@ Rename(const char *src, const char *dst)
return -1;
// because we need the return value, override the signal handler
- s = signal(SIGCHLD, NULL);
+ s = signal(SIGCHLD, SIG_DFL);
pid = fork();
if (pid == 0)