summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/main.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a34ab64..3321896 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2003-05-17 Shawn Betts <sabetts@sfu.ca>
+ * src/main.c (chld_handler): Variable declaration placed in proper
+ location.
+
* src/actions.c (spawn): always put the DISPLAY string in the
environment.
diff --git a/src/main.c b/src/main.c
index df919a5..60ec000 100644
--- a/src/main.c
+++ b/src/main.c
@@ -172,9 +172,10 @@ alrm_handler (int signum)
void
chld_handler (int signum)
{
+ rp_child_info *cur;
int pid, status, serrno;
+
serrno = errno;
- rp_child_info *cur;
while (1)
{