dsdb repl_meta_data: Use dsdb_request_add_controls()
[Samba/gebeck_regimport.git] / lib / util / util_process.c
blob6036e27c124e2dd0680e3c4035158427d485c30b
1 /*
2 * Unix SMB/CIFS implementation.
4 * Process utils.
6 * Copyright (c) 2013 Andreas Schneider <asn@samba.org>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 #include "util_process.h"
24 #ifdef HAVE_SYS_PRCTL_H
25 #include <sys/prctl.h>
26 #endif
28 int prctl_set_comment(const char *comment)
30 #if defined(HAVE_PRCTL) && defined(PR_SET_NAME)
31 return prctl(PR_SET_NAME, (unsigned long) comment, 0, 0, 0);
32 #endif
33 return 0;