Bug #5839

Test suite: pgrep detects itself in remote shell

Added by Tails 2013-07-18 07:47:01 . Updated 2014-07-19 20:29:16 .

Status:
Confirmed
Priority:
Normal
Assignee:
Category:
Test suite
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Research
Blueprint:

Starter:
0
Affected tool:
Deliverable for:

Description

When running ’vm.execute("pgrep -f $something")' it's currently the case that pgrep@ lists its own pid (and hence never fails, which could be of great importance), unlike when you run it natively, and unlike “The running pgrep or pkill process will never report itself as a match.” in pgrep(1).

The practical problem is the (potentially serious) surprise one can be hit by when writing a step definition.

Why is that happening? Are other tools misbehaving?

Having a look in the pgrep sources may help us understand this issue.


Subtasks


History

#1 Updated by BitingBird 2014-06-09 11:11:49

  • Subject changed from test suite: pgrep detects itself in remote shell to Test suite: pgrep detects itself in remote shell
  • Description updated
  • Category set to Test suite
  • Starter set to No

#2 Updated by intrigeri 2014-07-19 20:29:16

  • Tracker changed from Feature to Bug
  • Description updated