artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91ea8c2
)
pledge("stdio") the scheduler process
author
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 08:09:25 +0000
(08:09 +0000)
committer
gilles
<gilles@openbsd.org>
Tue, 13 Oct 2015 08:09:25 +0000
(08:09 +0000)
usr.sbin/smtpd/scheduler.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/scheduler.c
b/usr.sbin/smtpd/scheduler.c
index
539de4b
..
171b99d
100644
(file)
--- a/
usr.sbin/smtpd/scheduler.c
+++ b/
usr.sbin/smtpd/scheduler.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: scheduler.c,v 1.4
8 2015/01/20 17:37:54 deraadt Exp $
*/
+/* $OpenBSD: scheduler.c,v 1.4
9 2015/10/13 08:09:25 gilles Exp $
*/
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@
-462,6
+462,10
@@
scheduler(void)
evtimer_set(&ev, scheduler_timeout, NULL);
scheduler_reset_events();
+
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+
if (event_dispatch() < 0)
fatal("event_dispatch");
scheduler_shutdown();