Document that Alt during Move will disable SnapAttraction
[fvwm.git] / libs / setpgrp.c
blob1e69385def1300cf4d8a12cf553813ece87941f3
1 /* -*-c-*- */
2 /* Copyright (C) 2002 Dominik Vogt */
3 /* This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 ** setpgrp.c:
20 ** Provides a portable replacement for setpgrp
23 #include "config.h"
24 #include <unistd.h>
25 #include "setpgrp.h"
27 int fvwm_setpgrp(void)
29 int rc;
31 #ifdef HAVE_SETPGID
32 rc = setpgid(0, 0);
33 #else
35 # ifdef HAVE_SETPGRP
36 # ifdef SETPGRP_VOID
37 rc = setpgrp();
38 # else
39 rc = setpgrp(0, 0);
40 # endif
41 # else
42 /* neither setpgrp nor setpgid - just do nothing */
43 rc = 0;
44 # endif
45 #endif
47 return rc;