X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=main.c;h=3b6841baca861bd4772feb9f825fe54231098f26;hp=0bb06cea61089ebbbc02215e7d7887d035d80517;hb=b65f6a844f920eb19f7d05d2ee93819b72021057;hpb=fa53571f2b1670383b4536540de35b732f973ac7 diff --git a/main.c b/main.c index 0bb06ce..3b6841b 100644 --- a/main.c +++ b/main.c @@ -2,7 +2,7 @@ * rpcd - UBUS RPC server * * Copyright (C) 2013 Felix Fietkau - * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -77,6 +77,8 @@ int main(int argc, char **argv) if (stat("/var/run/rpcd", &s)) mkdir("/var/run/rpcd", 0700); + umask(0077); + signal(SIGPIPE, SIG_IGN); signal(SIGHUP, handle_signal); signal(SIGUSR1, handle_signal);