mirror of
https://github.com/troglobit/finit.git
synced 2026-11-24 20:21:44 +00:00
1 parent
a1b91e7191
commit
41a9745384
2 files changed
+3
-2
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Os -Wall -mno-push-args -fomit-frame-pointer
|
CFLAGS = -Os -Wall -mno-push-args
|
||||||
LD = gcc
|
LD = gcc
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
LIBS =
|
LIBS =
|
||||||
|
|||||||
@@ -154,8 +154,8 @@ int main()
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Set random seed
|
* Set random seed
|
||||||
* Bug here! the eeepc never sets its random seed from file!
|
|
||||||
*/
|
*/
|
||||||
|
/* Bug: the eeepc never sets its random seed from file */
|
||||||
system("/bin/cat /var/lib/urandom/random-seed >/dev/urandom > /dev/null 2>&1");
|
system("/bin/cat /var/lib/urandom/random-seed >/dev/urandom > /dev/null 2>&1");
|
||||||
unlink("/var/lib/urandom/random-seed");
|
unlink("/var/lib/urandom/random-seed");
|
||||||
|
|
||||||
@@ -188,6 +188,7 @@ int main()
|
|||||||
sigaddset(&nmask2, SIGCHLD);
|
sigaddset(&nmask2, SIGCHLD);
|
||||||
sigprocmask(SIG_UNBLOCK, &nmask2, NULL);
|
sigprocmask(SIG_UNBLOCK, &nmask2, NULL);
|
||||||
|
|
||||||
|
/* Bug: no signal 0 */
|
||||||
for (i = 0; i < NSIG; i++)
|
for (i = 0; i < NSIG; i++)
|
||||||
sigaction(i, &sa, NULL);
|
sigaction(i, &sa, NULL);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user