Move do_sleep() from helper.c --> util.c

This move makes it possible to share the code between the Finit daemon
and its client tools.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-01-13 07:55:44 +01:00
1 parent 6507136bdd
commit 50668161ad
4 files changed
+8 -8

No files matched your search

+7
View File
@@ -36,6 +36,13 @@ char *progname(char *arg0)
return prognm;
}
void do_sleep(unsigned int sec)
{
while ((sec = sleep(sec)))
;
}
/**
* Local Variables:
* indent-tabs-mode: t