mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Improve profiling messages
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
938773765c
commit
a1d7e48225
1 file changed
+4
@@ -534,12 +534,14 @@ int main()
|
|||||||
|
|
||||||
vhangup();
|
vhangup();
|
||||||
|
|
||||||
|
#ifndef DEBUG_TIMESTAMP
|
||||||
close(2);
|
close(2);
|
||||||
close(1);
|
close(1);
|
||||||
close(0);
|
close(0);
|
||||||
|
|
||||||
if (open("/dev/tty1", O_RDWR) != 0)
|
if (open("/dev/tty1", O_RDWR) != 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
#endif
|
||||||
|
|
||||||
sigemptyset(&act.sa_mask);
|
sigemptyset(&act.sa_mask);
|
||||||
act.sa_handler = SIG_DFL;
|
act.sa_handler = SIG_DFL;
|
||||||
@@ -551,9 +553,11 @@ int main()
|
|||||||
for (i = 1; i < NSIG; i++)
|
for (i = 1; i < NSIG; i++)
|
||||||
sigaction(i, &sa, NULL);
|
sigaction(i, &sa, NULL);
|
||||||
|
|
||||||
|
#ifndef DEBUG_TIMESTAMP
|
||||||
dup2(0, 0);
|
dup2(0, 0);
|
||||||
dup2(0, 1);
|
dup2(0, 1);
|
||||||
dup2(0, 2);
|
dup2(0, 2);
|
||||||
|
#endif
|
||||||
|
|
||||||
touch("/tmp/nologin");
|
touch("/tmp/nologin");
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user