search for: pgrp

Displaying 20 results from an estimated 104 matches for "pgrp".

Did you mean: pgp
2002 Feb 06
2
SFTP Status Bar..
...4,6 +305,139 @@ args->list = xrealloc(args->list, args->nalloc * sizeof(char *)); args->list[args->num++] = xstrdup(buf); args->list[args->num] = NULL; +} + +/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */ +static int +foregroundproc(void) +{ + static pid_t pgrp = -1; + int ctty_pgrp; + + if (pgrp == -1) + pgrp = getpgrp(); + + return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && + ctty_pgrp == pgrp)); +} + +int +getttywidth(void) +{ + struct winsize winsize; + + if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1) + return (...
2002 Jan 30
1
Quick sftp status indicator.
...c.c --- misc.c 2002/01/24 21:09:25 1.15 +++ misc.c 2002/01/29 23:16:28 @@ -310,3 +310,133 @@ args->list[args->num++] = xstrdup(buf); args->list[args->num] = NULL; } + +/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */ +static int +foregroundproc(void) +{ + static pid_t pgrp = -1; + int ctty_pgrp; + + if (pgrp == -1) + pgrp = getpgrp(); + + return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && + ctty_pgrp == pgrp)); +} + +void +progressmeter(int flag, off_t statbytes, off_t totalbytes, char *curfile) +{ +#define STALLTIME 5 /* number of sec...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...c.c --- misc.c 2002/01/24 21:09:25 1.15 +++ misc.c 2002/02/02 21:47:40 @@ -310,3 +310,135 @@ args->list[args->num++] = xstrdup(buf); args->list[args->num] = NULL; } + +/* scp/sftp progression meter (from src/usr.bin/ftp/util.c) */ +static int +foregroundproc(void) +{ + static pid_t pgrp = -1; + int ctty_pgrp; + + if (pgrp == -1) + pgrp = getpgrp(); + + return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && + ctty_pgrp == pgrp)); +} + +void +progressmeter(off_t statbytes, off_t totalbytes, char *filename) +{ +#define STALLTIME 5 /* number of seconds befo...
2003 Jan 27
0
[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change
...Status: NEW Severity: normal Priority: P2 Component: Build system AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: wendyp at cray.com when foregroundproc() got put into progressmeter.c, the return line got changed from #ifdef HAVE_TCGETPGRP return ((ctty_pgrp = tcgetpgrp(STDOUT_FILENO)) != -1 && ctty_pgrp == pgrp); #else return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 && ctty_pgrp == pgrp)); #endif to return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &am...
2010 Jan 21
0
Samba/Winbind 3.4.4 on AIX 5.3 TL 10 does not retrieve ANY User's Secondary Groups
...ssword> [root at pepsrh5 ~]# Here is the AIX example : [pepsaix53.peps.local:test:/home/PEPS/test:] id uid=11137(test) gid=10513(domain users) [pepsaix53.peps.local:test:/home/PEPS/test:] groups domain users [pepsaix53.peps.local:test:/home/PEPS/test:] lsuser -R WINBIND test test id=11137 pgrp=domain users home=/home/PEPS/test shell=/bin/ksh gecos= registry=WINBIND roles= id=11137 pgrp=domain users home=/home/PEPS/test shell=/bin/ksh pgid=10513 gecos= shell=/bin/ksh pgrp=domain users SID=S-1-5-21-1911926800-2589015463-1641127959-1137 [pepsaix53.peps.local:test:/home/PEPS/test:] sudo su...
2008 Apr 15
5
o2ib module prevents shutdown
Hello, Not sure if this is the right forum: I''m encountering difficulties with o2ib which prevents an LNET shutdown from proceeding: Unloading OpenIB kernel modules:NET: Unregistered protocal family 27 Failed to unload rdma_cm Failed to unload rdma_cm Failed to unload ib_cm Failed to unload ib_sa LustreError: 131-3: Received notification of device removal Please shutdown LNET
2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
> From: Akim Demaille <akim at epita.fr> > Date: 17 Sep 2001 11:22:19 +0200 > > | 2001-09-16 Tim Van Holder <tim.van.holder at pandora.be> > | * lib/autoconf/functions.m4: (AC_FUNC_GETPGRP) Don't rely on > | setpgrp() being present. I looked into that problem a bit more. Several programs use AC_FUNC_GETPGRP and GETPGRP_VOID, including Bash, Gawk, and OpenSSH, but they use it only to decide whether they must pass an arg (either 0 or getpid()) to getpgrp, which is the only sa...
2015 Oct 07
2
autpfs + nfs stuck on stat() inside libvirt lxc 1.2.18
Hi all. Has someone success story with using autofs + nfs inside libvirt LXC container ? In my case nfs client and server in lxc work just fine, but with autofs hang on system call state(). I use CE7_64 on nodes and inside container with libvirt 1.2.18 May be I must set some of capabilities in <feature> (http://man7.org/linux/man-pages/man7/capabilities.7.html) ? I try only CAP_SYS_ADMIN
2005 Jun 23
0
Using 2 x DSL
...sencia wrote: > Hi Henry, > > Saw your question on the lists - you can get a name-brand (Symantec) > for around CAD$1000 - see the following: > http://www.symantecstore.com/dr/sat1/ec_MAIN.Entry17c?CID=0&SID=49998&SP=10007&PN=5&PID=645999&CUR=124&DSP=&PGRP=0&CACHE_ID=0 > <http://www.symantecstore.com/dr/sat1/ec_MAIN.Entry17c?CID=0&SID=49998&SP=10007&PN=5&PID=645999&CUR=124&DSP=&PGRP=0&CACHE_ID=0> > > The good thing about it is that it will do load balancing and > bandwidth aggregation. It also...
2012 Aug 29
1
bash job control and signals
I want to suspend a script using a signal but that does not work as I want. I made an example script: $ cat script #!/bin/bash echo $$ gkrellm If run this script gkrellm starts up and I can use job control from the terminal to suspend the script (CTRL-Z) and resume it (fg or bg). If I suspend I can see that gkrellm freezes (that's why I choose gkrellm in this example): $ ./script 23632
2004 Jan 16
2
ext3 bug?
...t1 on / type ext3 (rw,errors=remount-ro) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw) /dev/ide/host0/bus0/target0/lun0/part5 on /media type vfat (rw,noexec,nodev,gid=2000,umask=002) usbdevfs on /proc/bus/usb type usbdevfs (rw) automount(pid1324) on /data/net type autofs (rw,fd=5,pgrp=1324,minproto=2,maxproto=4) automount(pid1348) on /net type autofs (rw,fd=5,pgrp=1348,minproto=2,maxproto=4) automount(pid1319) on /var/autofs/misc type autofs (rw,fd=5,pgrp=1319,minproto=2,maxproto=4) Anything I can do before formatting the disk to lighten things up? Simon -- _________________...
2013 Feb 15
2
getpgrp
These days, sshd.c has: static void grace_alarm_handler(int sig) { ... if (getpgid(0) == getpid()) { signal(SIGTERM, SIG_IGN); killpg(0, SIGTERM); } sigdie(...); } however (really) old BSDs do not have getpgid(). They do have getpgrp(), which does what we want here. The question is what to do if we have neither: return the pid (and thus terminate nothing) or return -1 and kill everything wihout getting to the sigdie(). I vote for the latter (since they're unlikely to be able to log anything in a signal-safe manner anyway)....
2006 May 15
1
Memory allocation fails in R 2.2.1 and R 2.3.0 on SGI Irix, while plenty of memory available (PR#8861)
...64 Gb of RAM. In R 2.0.0 we could run large jobs, allocating 8 Gb of RAM was not a problem, for example by running: > v1 <- seq(1,2^29) > v2 <- seq(1,2^29) > v3 <- seq(1,2^29) > v4 <- seq(1,2^29) This yields an R process, consuming about 8 Gb of RAM: PID PGRP USERNAME PRI SIZE RES STATE TIME WCPU% CPU% COMMAND 177484 177484 mirjam 20 8225M 8217M sleep 1:18 29.3 0.00 R After upgrading from R 2.0.0 to R 2.2.1, we cannot allocate more than about 1300 M of memory, as shown below: > v1 <- seq(1,2^29) Error: cannot allocate vec...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
...0) { if (pid != -1) { errno = EINVAL; return -1; } - pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */ + pid = 0; /* wait4() wants pid=0 for indiscriminate wait. */ } - return wait4(pid, (union wait *)stat_loc, options, NULL); -} - -pid_t setsid(void) -{ - return setpgrp(0, getpid()); + wait_pid = wait4(pid, &statusp, options, NULL); + stat_loc = (int *)statusp.w_status; + return wait_pid; } int @@ -81,10 +89,7 @@ int tcsetpgrp(int fd, pid_t pgrp) { - int s; - - s = pgrp; - return (ioctl(fd...
2010 Apr 27
1
Samba ADS on AIX 6.1 TL04
Hi All I'm trying to intergrate samba server with ADS on AIX 6.1 TL04, for last one week, with idmap / winbind but no satisfactory results. I have gone through various links at samba.org relating to winbind, idmapper and followed http://pware.hvcc.edu/ for precompiled binaries and http://pware.hvcc.edu/AIX-Samba.pdf which is for AIX 6.1 TL03 though. I have found the samba which is provided
2009 May 14
4
Possibly dumb questions about DC and user/system limits
...ount and max_mail_processes settings So I changed the no_size and no_size_hard to 3500 and 4000 respectively in both dovecot and root AIX defines nosize:* *Sets the soft limit for the number of file descriptors a user process may have open at one time. an lsuser dovecot returns: dovecot id=417 pgrp=dovecot groups=dovecot shell=/bin/false daemon=true admin=false ... fsize=2097151 cpu=-1 data=262144 stack=65536 core=2097151 rss=65536 nofiles=3500 nofiles_hard=4000 I kill dovecot and all children and restart it....same error message What am I missing? Does the machine have to be rebooted for...
2008 Mar 17
0
CDRW-DVD Mount Problem, Centos 5.1, Intel board...
...none /selinux selinuxfs rw 00 /proc/bus/usb /proc/bus/usb usbfs rw 0 0 devpts /dev/ptsdevpts rw 0 0 /dev/sda1 /boot ext3 rw,data=ordered 0 0 tmpfs/dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 00 /etc/auto.misc /misc autofsrw,fd=6,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 -hosts /net autofsrw,fd=11,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 fdisk -l Disk /dev/sda: 500.1 GB, 500107862016bytes 255 heads, 63 sectors/track, 60801 cylinders Units =cylinders of 16065 * 512 = 8225280 bytes Device Boot Start...
2008 Jan 23
7
[PATCH 0/2] dm-band: The I/O bandwidth controller: Overview
...ller implemented as a device-mapper driver. Several jobs using the same physical device have to share the bandwidth of the device. Dm-band gives bandwidth to each job according to its weight, which each job can set its own value to. At this time, a job is a group of processes with the same pid or pgrp or uid. There is also a plan to make it support cgroup. A job can also be a virtual machine such as KVM or Xen. +------+ +------+ +------+ +------+ +------+ +------+ |cgroup| |cgroup| | the | | pid | | pid | | the | jobs | A | | B | |others| | X | | Y | |others| +-...
2008 Jan 23
7
[PATCH 0/2] dm-band: The I/O bandwidth controller: Overview
...ller implemented as a device-mapper driver. Several jobs using the same physical device have to share the bandwidth of the device. Dm-band gives bandwidth to each job according to its weight, which each job can set its own value to. At this time, a job is a group of processes with the same pid or pgrp or uid. There is also a plan to make it support cgroup. A job can also be a virtual machine such as KVM or Xen. +------+ +------+ +------+ +------+ +------+ +------+ |cgroup| |cgroup| | the | | pid | | pid | | the | jobs | A | | B | |others| | X | | Y | |others| +-...
2008 Mar 18
0
SOLVED: CDRW-DVD Mount Problem, Centos 5.1, Intel board...
...none /selinux selinuxfs rw 00 /proc/bus/usb /proc/bus/usb usbfs rw 0 0 devpts /dev/ptsdevpts rw 0 0 /dev/sda1 /boot ext3 rw,data=ordered 0 0 tmpfs/dev/shm tmpfs rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw0 0 sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 00 /etc/auto.misc /misc autofsrw,fd=6,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 -hosts /net autofsrw,fd=11,pgrp=2758,timeout=300,minproto=5,maxproto=5,indirect 00 fdisk -l Disk /dev/sda: 500.1 GB, 500107862016bytes 255 heads, 63 sectors/track, 60801 cylinders Units =cylinders of 16065 * 512 = 8225280 bytes Device Boot Start...