Skip to content

Commit b3869cf

Browse files
committed
bg: Fix reuse opaque struct across bridges issue
1 parent 9e89d0e commit b3869cf

File tree

1 file changed

+2
-1
lines changed
  • fish-rust/src/builtins

1 file changed

+2
-1
lines changed

fish-rust/src/builtins/bg.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ fn send_to_bg(
4444
job.command().from_ffi()
4545
));
4646

47-
job.ffi_group().set_is_foreground(false);
47+
unsafe { std::mem::transmute::<&ffi::job_group_t, &crate::job_group::JobGroup>(job.ffi_group()) }
48+
.set_is_foreground(false);
4849

4950
if !job.ffi_resume() {
5051
return STATUS_CMD_ERROR;

0 commit comments

Comments
 (0)