mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-23 16:43:11 +01:00
And again.
This commit is contained in:
parent
523b2e863f
commit
1583b87ae6
@ -1,4 +1,4 @@
|
|||||||
/* $Id: osdep-freebsd.c,v 1.7 2009-02-07 19:27:11 nicm Exp $ */
|
/* $Id: osdep-freebsd.c,v 1.8 2009-02-07 19:33:07 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -22,7 +22,6 @@
|
|||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/time.h>
|
|
||||||
#include <sys/user.h>
|
#include <sys/user.h>
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
@ -92,8 +91,7 @@ retry:
|
|||||||
bestp = p;
|
bestp = p;
|
||||||
if (p->ki_slptime < bestp->ki_slptime)
|
if (p->ki_slptime < bestp->ki_slptime)
|
||||||
bestp = p;
|
bestp = p;
|
||||||
if (timercmp(&p->ki_rusage_ch, &bestp->ki_rusage_ch, <))
|
/* XXX children? */
|
||||||
bestp = p;
|
|
||||||
}
|
}
|
||||||
if (bestp != NULL) {
|
if (bestp != NULL) {
|
||||||
procname = get_proc_argv0(bestp->ki_pid);
|
procname = get_proc_argv0(bestp->ki_pid);
|
||||||
|
Loading…
Reference in New Issue
Block a user