aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-22 00:16:29 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-22 00:16:29 +0000
commit1f228985b27602f94ff973d50e276220887df6a3 (patch)
tree5715edba638603b3815dc8700c88c2c0395b2b16 /debianutils
parent5d89fbaa2e00a8a26e530306d76b78bf91d12ec8 (diff)
downloadbusybox-w32-1f228985b27602f94ff973d50e276220887df6a3.tar.gz
busybox-w32-1f228985b27602f94ff973d50e276220887df6a3.tar.bz2
busybox-w32-1f228985b27602f94ff973d50e276220887df6a3.zip
whitespace fixes. no code changes
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/start_stop_daemon.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index 7a0d1166f..4e816bd19 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -142,18 +142,18 @@ static void do_procinit(void)
142 procdir = xopendir("/proc"); 142 procdir = xopendir("/proc");
143 143
144 pid = 0; 144 pid = 0;
145 while(1) { 145 while(1) {
146 errno = 0; /* clear any previous error */ 146 errno = 0; /* clear any previous error */
147 entry = readdir(procdir); 147 entry = readdir(procdir);
148// TODO: check for exact errno(s) which mean that we got stale entry 148// TODO: check for exact errno(s) which mean that we got stale entry
149 if (errno) /* Stale entry, process has died after opendir */ 149 if (errno) /* Stale entry, process has died after opendir */
150 continue; 150 continue;
151 if (!entry) /* EOF, no more entries */ 151 if (!entry) /* EOF, no more entries */
152 break; 152 break;
153 pid = bb_strtou(entry->d_name, NULL, 10); 153 pid = bb_strtou(entry->d_name, NULL, 10);
154 if (errno) /* NaN */ 154 if (errno) /* NaN */
155 continue; 155 continue;
156 check(pid); 156 check(pid);
157 } 157 }
158 closedir(procdir); 158 closedir(procdir);
159 if (!pid) 159 if (!pid)