about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-28 08:17:27 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-28 08:17:27 +0200
commita50b15a9e9663b1a7ee11d39ddf246427aecaeef (patch)
treeaa7fcaf84ab7233d6101fb324ef459e6be2eb4e8
parent0a25fe91888f30a382ca0cfb492283ce9aa3296c (diff)
downloaddwm-a50b15a9e9663b1a7ee11d39ddf246427aecaeef.tar.gz
added a comment to spawn 1.1
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index e19e3e9..91df00b 100644
--- a/util.c
+++ b/util.c
@@ -51,6 +51,7 @@ spawn(Arg *arg)
 
 	if(!arg->cmd)
 		return;
+	/* the double-fork construct avoids zombie processes */
 	if(fork() == 0) {
 		if(fork() == 0) {
 			if(dpy)
ref='#n122'>122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182