Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Conversation

@pevik
Copy link
Collaborator

@pevik pevik commented Mar 17, 2022

s/ssh_stop/sh_stop/

Obvious typo.

Reported-by: Andrea Cervesato [email protected]
Signed-off-by: Petr Vorel [email protected]

pevik added 2 commits March 17, 2022 12:00
Groovy and Xenial are EOL now. impish does not have linux-headers
package. But update releases does not help because Focal (LTS, it'd be a
candidate to test) and Hirsute have problems to install
linux-headers-5.11.0-1021-azure (some strange timeout).

This means that 6999232 ("install_pkg: Fix kernel headers for Ubuntu")
was tested only locally.

Reviewed-by: Cyril Hrubis <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
s/ssh_stop/sh_stop/

Obvious typo.

Reported-by: Andrea Cervesato <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
@pevik
Copy link
Collaborator Author

pevik commented Mar 17, 2022

Also backport one commit from https://github.com/metan-ucw/runltp-ng/pull/46/commits to fix CI.

@pevik pevik changed the title backend: Fix sh_init stop function pointer [WIP] backend: Fix sh_init stop function pointer Mar 17, 2022
@pevik
Copy link
Collaborator Author

pevik commented Mar 17, 2022

Ah, I overlooked sh_stop does not exists, it was ssh_stop.

@metan-ucw
Copy link
Owner

Looking at the code it may not be mistake at all.

Notice that both ssh_start and sh_start does set self->{$pid} so stopping a shell backend by running exit command and then waitpid on the $pid looks like it may work actually. Unfortunately I no longer remember if this was a design or if it works by accident.

@pevik
Copy link
Collaborator Author

pevik commented Mar 17, 2022

OK, up to you.

Could you please cherry-pick and merge the first commit which fixes CI? (in case somebody tries to send PR it'd be good CI is working well).

@cfconrad
Copy link
Collaborator

Only that this line https://github.com/metan-ucw/runltp-ng/blob/master/backend.pm#L559 will produce a
Use of uninitialized value $user in string eq at warning.

I would be for creating the sh_stop() and simply call the exit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants