ridiculousfish c936c27fe1 Fix up --on-job-exit caller
The `function --on-job-exit caller` feature allows a command substitution
to observe when the parent job exits. This has never worked very well - in
particular it is based on job IDs, so a function that observes this will
run multiple times. Implement it properly.

Do this by having a not-recycled "internal job id".

This is only used by psub, but ensure it works properly none-the-less.

faho:
Backport of 6bf9ae9aeb654985384426872998707bb6851298

Fixes #6613
2020-02-20 19:14:23 +01:00
..
2020-02-20 19:14:23 +01:00
2019-11-25 16:43:54 -08:00
2019-09-14 16:37:57 -07:00
2019-09-14 12:46:57 -07:00
2019-04-11 21:59:23 -07:00
2019-09-14 16:37:57 -07:00
2018-04-01 13:48:21 -07:00
2018-12-11 18:23:37 +01:00
2014-09-21 21:03:44 -07:00
2014-09-21 21:03:44 -07:00
2019-06-28 11:16:27 -07:00
2017-07-16 15:13:39 -07:00
2014-12-23 15:46:47 -08:00
2019-05-24 17:00:56 -07:00
2019-05-24 17:00:56 -07:00
2017-07-25 12:44:26 -07:00
2019-04-07 09:20:32 -07:00
2017-06-16 21:01:56 -07:00
2019-11-25 13:07:15 +01:00
2017-01-31 22:10:53 -08:00
2019-04-07 09:20:32 -07:00
2019-04-07 09:20:32 -07:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2019-02-24 21:46:52 -08:00
2016-12-20 16:46:33 -08:00
2018-11-18 22:33:02 +01:00
2018-11-18 22:33:02 +01:00
2018-11-18 22:33:02 +01:00
2019-08-13 22:56:31 -07:00
2005-09-20 23:31:55 +10:00
2019-11-25 13:07:15 +01:00
2005-09-20 23:31:55 +10:00
2018-11-28 06:27:21 -08:00
2018-03-31 16:54:50 -07:00
2016-11-17 14:53:50 -08:00
2018-04-01 13:48:21 -07:00
2014-07-13 19:11:29 -07:00
2019-01-01 14:52:26 +01:00
2019-02-12 20:34:19 +01:00
2019-02-12 20:34:19 +01:00
2019-02-12 20:34:19 +01:00
2017-03-28 16:28:24 -07:00
2017-03-28 16:28:24 -07:00
2017-03-28 16:28:24 -07:00
2018-11-28 06:27:21 -08:00
2019-02-10 14:45:03 -08:00
2018-12-31 19:36:08 -06:00
2017-11-16 10:48:21 -08:00
2017-11-16 10:48:21 -08:00
2018-11-28 06:27:21 -08:00