summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-17 10:25:22 +0000
committersabetts <sabetts>2003-05-17 10:25:22 +0000
commitd0d9444986d81d1586fc1596d61f7a17e9058c41 (patch)
treea2f362d4455afd6549778f44ab2a3f17a4a41200
parent768afe0f97f0d164502202169dc1761d2b6321a2 (diff)
downloadratpoison-d0d9444986d81d1586fc1596d61f7a17e9058c41.zip
(chld_handler): Variable declaration placed in proper
location.
-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)
{