Skip to content

Commit

Permalink
Merge pull request #31 from masatake/port-more-changes-from-lsof-linux
Browse files Browse the repository at this point in the history
Port more changes from lsof linux
  • Loading branch information
masatake authored May 7, 2019
2 parents 52eace6 + b4f1b3a commit 7c05eaa
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
16 changes: 12 additions & 4 deletions 00DIST
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
Notes for the distribution of lsof version 4

********************************************************************
| The latest release of lsof is always available via anonymous ftp |
| from lsof.itap.purdue.edu. Look in pub/tools/unix/lsof. |
| The latest release of lsof is always available from
| https://github.com/lsof-org/lsof/releases
|
| From 4.92.1, git is introduced to manage changes.
| You can consult the details of changes with git.
********************************************************************

Contents
Expand Down Expand Up @@ -4914,13 +4917,18 @@ July 14, 2018
Many documentations are not updated yet.
URLs in -v output and -h output are updated.

4.92.2 ???
4.93.0 May 7, 2019

[freebsd] Made FreeBSD 13 adjustment.
[darwin] Fix a typo causing a build error.
Fix a potential memory leak.
[linux] use tirpc for rpc if libc doesn't provide rpc.h.
Fix a typo in man page.
[linux] fix memory leaks detected by valgrind about unix
endpoint information.
Update the description about -fg and -fG options on linux.

Consult git log for more details.

Masatake YAMATO <[email protected]>, a member of lsof-org
May 6, 2019
May 7, 2019
2 changes: 1 addition & 1 deletion Lsof.8
Original file line number Diff line number Diff line change
Expand Up @@ -4371,7 +4371,7 @@ One way to create such file structures is to run X clients with the DISPLAY
variable set to ``:0.0''.
.PP
The
.BI +|\-f [cfgGn]
.BI +|\-f [cfn]
option is not supported under /proc\-based Linux
.IR lsof ,
because it doesn't read kernel structures from kernel memory.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ If you are interested in maintaining a dialect, let us know via the
issue tracker of GitHub (https://github.com/lsof-org/lsof). If
we cannot find a volunteer for a dialect, we will remove the dialect.

Many texts in the source tree still refers purdue.edu as the home of
lsof development. It should be https://github.com/lsof-org/lsof, the
new home. The updating is in progress.

We are running another repository, lsof-org/"lsof-linux" derived from
lsof-4.91 that is also released by Vic. To the repository, we have
introduced some new features and fixes for building specific to
Expand Down
12 changes: 12 additions & 0 deletions dialects/linux/dsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,12 +581,24 @@ clear_uxsinfo()
int h; /* hash index */
uxsin_t *ui, *up; /* remporary pointers */

#if defined(HASEPTOPTS) && defined(HASUXSOCKEPT)
pxinfo_t *pp, *pnp;
#endif /* defined(HASEPTOPTS) && defined(HASUXSOCKEPT) */

if (!Uxsin)
return;
for (h = 0; h < INOBUCKS; h++) {
if ((ui = Uxsin[h])) {
do {
up = ui->next;

#if defined(HASEPTOPTS) && defined(HASUXSOCKEPT)
for (pp = ui->pxinfo; pp; pp = pnp) {
pnp = pp->next;
(void) free((FREE_P *)pp);
}
#endif /* defined(HASEPTOPTS) && defined(HASUXSOCKEPT) */

if (ui->path)
(void) free((FREE_P *)ui->path);
if (ui->pcb)
Expand Down

0 comments on commit 7c05eaa

Please sign in to comment.