knockd dies if I 'suspend'

Bug #31379 reported by Chris Moore
6
Affects Status Importance Assigned to Milestone
knockd (Debian)
New
Unknown
knockd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I close the lid of my laptop, it goes into 'suspend' mode.

When I wake the laptop up again, the 'knockd' process is no longer running.

This happens even if I close the lid for just a second, and wake the laptop up immediately.

"sshd" survives a 'suspend', even for 10 hours. I think 'knockd' should be similarly resiliant.

Revision history for this message
Chris Moore (dooglus) wrote :

When I close the lid of my laptop, it goes into 'suspend' mode.

When I wake the laptop up again, the 'knockd' process is no longer running.

This happens even if I close the lid for just a second, and wake the laptop up immediately.

"sshd" survives a 'suspend', even for 10 hours. I think 'knockd' should be similarly resiliant.

Revision history for this message
Chris Moore (dooglus) wrote :

The main loop does the following:

 while(ret >= 0) {
  ret = pcap_dispatch(cap, -1, sniff, NULL);
 }

When I suspect, ret gets set to -1, the loop exits, and the program ends, with this message:

  pcap: recvfrom: Network is down

It should wait for the network to come back again, probably set up a new pcap, and start again.

Revision history for this message
Chris Moore (dooglus) wrote :

that's "suspend", not "suspect" (!)

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Is this still a problem with Dapper/Edgy ? Thanks.

Changed in knockd:
status: Unconfirmed → Needs Info
Changed in knockd:
status: Unknown → Unconfirmed
Revision history for this message
Vassilis Pandis (pandisv) wrote :

obviously still an issue since no code has changed

Changed in knockd:
status: Needs Info → Unconfirmed
Revision history for this message
In , Ivan Baldo (ibaldo) wrote : Found in version 0.5-1.1

Exact same problem and exact same fix as the original reporter.
The package should come with that script.
Thanks.

Revision history for this message
In , Ivan Baldo (ibaldo) wrote : found 315753 in 0.5-1.1

# Automatically generated email from bts, devscripts version 2.10.33
found 315753 0.5-1.1

Daniel T Chen (crimsun)
Changed in knockd:
importance: Medium → Undecided
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.