Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
vkatsikaros
@vkatsikaros
I just noticed that this room is very quiet. For reference https://gitlab.com/psmisc/psmisc/issues/9
Thomas Sader
@thommey
Hey @csmall, thanks for fixing #6! :) Are you going to remove the confidentiality from the issue? In retrospect I don't think it was necessary to set that on my end, I was just cautious.
Craig Small
@csmall
Thomas
@thommey I'll see if I can
@vkatsikaros sounds like line truncation
Hank Leininger
@hlein_gitlab
Hi, I noticed the other day that psmisc-2.32 breaks killall -SIGNAME or killall -NAME for almost all signals: psmisc/psmisc#13
Many distro init scripts, log rotation scripts, etc use killall -HUP or similar, all of which are broken by that change in behavior
Gee Fitz
@gee1_gitlab
Can someone make pslog return the logs of multiple pids? even with xargs it only returns one pid
Hamish MB
@HamishTMB_twitter
Hi, just wondering if specifying a signal like -INT is supposed to enable interactive mode or if this is a bug?
It also doesn't seem like you can disable interactive mode with a switch
Craig Small
@csmall
@HamishTMB_twitter the -INT problem is an argument parser problem. What versions are you seeing this?
@gee1_gitlab sounds like something for https://gitlab.com/psmisc/psmisc/issues
Hamish MB
@HamishTMB_twitter
The latest release on GitHub, and what's present in Ubuntu 18.04 which I think is 23.1
Craig Small
@csmall
Means I'll remember it there 🤣
Hamish MB
@HamishTMB_twitter
Gitlab, sorry. Used to everything being on GitHub before MS bought it
Shall I report this as an issue then? Wasn't sure if it was, so thought I should ask first
Craig Small
@csmall
Being non-standard Arg parsing it's fiddly because you are working against getopt()
Yes raise it as an issue. I thought I fixed it but it breaks in interesting ways
Commit 258ee9166e585f87005d3a9686938a4fa26669f9 may fix it but worth checking
Hamish MB
@HamishTMB_twitter
Fair enough. Getopt causes me some confusion in Python sometimes, let alone in C++
Shall check tomorrow then and let you know
If not I shall report it as an issue
Craig Small
@csmall
Fuser -INT 123 makes it interactive?
Thanks!
Hamish MB
@HamishTMB_twitter
Oops, I was referring to killall, forgot to mention
May be a similar bug in that though I guess
Craig Small
@csmall
Ah
Hamish MB
@HamishTMB_twitter
I can check that as well
Craig Small
@csmall
Ok 23.2 in Debian, killall -INT sleep, works fine
23.1 was my getopt nightmare release
Hamish MB
@HamishTMB_twitter
Checking 23.2 here again, may have got confused
It's okay with caps in 23.1, but -int in lower case causes problems
Found it when trying to work around the 23.1 issues in certain Ubuntu and Fedora releases that still use it
Craig Small
@csmall
Hmm. I didn't think signals in lower case worked
Hamish MB
@HamishTMB_twitter
Neither did I, but I realised by accident
Okay, I'll not use them then 😂
Craig Small
@csmall
The check is strcmp not strcasecmp. I can't see how any signals would work in lowercase
Hamish MB
@HamishTMB_twitter
Huh, that's weird. I just tried it and they worked in 23.1 and 23.2.
It turns out lower case Int works in 23.1, so this was just one of my attempts at a workaround
Also seems to work in 23.2, just also turns on inter mode in both cases.
*interactive
Hamish MB
@HamishTMB_twitter
I wonder whether all it does is turn on interactive mode actually. How can I check what signal it's sending?
Hank Leininger
@hlein_gitlab
TIL killall has an interactive mode. So I'm guessing -int is being interpreted as -i (interactive) -n (namespace-match) -t ... nothing? killall -in -t sleep does throw a usage error because of the -t, but killall -int sleep does not complain that '-t' is not a thing.
Ajay Kaher
@akaher
What's the process to submit the patch to psmisc (mail to maintainers or git push)?
Craig Small
@csmall
@HamishTMB_twitter strace will tell you what signal is being sent, or killall sleep in another terminal and it might tell you
Ajay Kaher
@akaher

@csmall Thanks. I have created the Merge Request:
psmisc/psmisc!19

Please let me know in case any thing pending in this Merge Request from my side.

David Smith
@shmish111_gitlab
is there way to build a statically linked killall?
I can build it with musl already
but not static