Displaying 20 results from an estimated 126 matches for "esrch".
Did you mean:
srch
2012 Dec 12
2
[PATCH v7 1/2] xen: unify domain locking in domctl code
These two patches were originally part of the XSM series that I have
posted, and remain prerequisites for that series. However, they are
independent of the XSM changes and are a useful simplification
regardless of the use of XSM.
The Acked-bys on these patches were provided before rebasing them over
the copyback changes in 26268:1b72138bddda, which had minor conflicts
that I resolved.
[PATCH
2007 Jul 14
3
zfs list hangs if zfs send is killed (leaving zfs receive process)
.... I killed it, but the zfs receive doesn''t want to die... In the meantime my zfs list command just hangs.
Here is the tail end of the truss output from a "truss zfs list":
ioctl(3, ZFS_IOC_OBJSET_STATS, 0x08043484) = 0
ioctl(3, ZFS_IOC_SNAPSHOT_LIST_NEXT, 0x08045788) Err#3 ESRCH
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08046950) = 0
ioctl(3, ZFS_IOC_OBJSET_STATS, 0x0804464C) = 0
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08045788) Err#3 ESRCH
ioctl(3, ZFS_IOC_SNAPSHOT_LIST_NEXT, 0x08045788) = 0
ioctl(3, ZFS_IOC_OBJSET_STATS, 0x08043484) = 0
ioctl(3, ZFS_IOC_SNAPSHOT_LIST...
2003 Oct 15
1
rsync freezes on solaris
...id() = 7970 [7969]
Received signal #18, SIGCLD [caught]
siginfo: SIGCLD CLD_EXITED pid=7971 status=0x000C
waitid(P_ALL, 0, 0xFFBED6D8, WEXITED|WTRAPPED|WNOHANG) = 0
waitid(P_ALL, 0, 0xFFBED6D8, WEXITED|WTRAPPED|WNOHANG) Err#10 ECHILD
setcontext(0xFFBED890)
kill(7971, SIGUSR1) Err#3 ESRCH
write(2, " r s y n c e r r o r :".., 69) Err#32 EPIPE
Received signal #13, SIGPIPE [ignored]
sigaction(SIGUSR1, 0xFFBED598, 0xFFBED618) = 0
sigaction(SIGUSR2, 0xFFBED598, 0xFFBED618) = 0
getpid() = 7970 [7969]
kill(7971, SIGUSR1) Err#3 ESRCH
write(2, " r s y n c e r r...
2015 Jun 29
1
Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...ot;
> > > unless $label eq "newlabel";
> > >
> > > +# Setting btrfs UUID
> > > +eval {
> > > + $g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
> > > +};
> > > +# FIXME: ignore ESRCH
> >
> > What is ESRCH about?
>
> The problem is every time I got a ESRCH here.
> I have no idea about this.
>
> Can we just ignore it by:
> } elsif ($err == Errno::ESRCH()) {
> ;
> } else {
> die $@;
> }
No, please investigate why you are getting...
2015 Jun 26
3
Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...cted label: expecting 'newlabel' but got '$label'"
> unless $label eq "newlabel";
>
> +# Setting btrfs UUID
> +eval {
> + $g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
> +};
> +# FIXME: ignore ESRCH
What is ESRCH about?
> +my $err = $g->last_errno ();
> +
> +if ($err == 0) {
> + my $uuid = $g->vfs_uuid ("/dev/sda1");
> + die "unexpected uuid expecting
> + '12345678-1234-1234-1234-123456789012' but got '$uuid'"
> + un...
2009 Jan 09
5
[PATCH] Enable PCI passthrough with stub domain.
...34,6 @@ static int physdev_map_pirq(struct physd
struct msi_info _msi;
void *map_data = NULL;
- if ( !IS_PRIV(current->domain) )
- return -EPERM;
-
if ( !map )
return -EINVAL;
@@ -49,6 +46,14 @@ static int physdev_map_pirq(struct physd
{
ret = -ESRCH;
goto free_domain;
+ }
+ else
+ {
+ if ( !IS_PRIV_FOR(current->domain, d) )
+ {
+ ret = -EPERM;
+ goto free_domain;
+ }
}
/* Verify or get vector. */
@@ -161,8 +166,8 @@ static int physdev_unmap_pirq(struct phy
struct...
2012 Feb 29
2
[PATCH] Start the server if another user has a PID matching our stale pidfile.
...-)
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb
index 7d2c623..0c2af5d 100644
--- a/lib/unicorn/http_server.rb
+++ b/lib/unicorn/http_server.rb
@@ -656,7 +656,7 @@ class Unicorn::HttpServer
wpid <= 0 and return
Process.kill(0, wpid)
wpid
- rescue Errno::ESRCH, Errno::ENOENT
+ rescue Errno::ESRCH, Errno::ENOENT, Errno::EPERM
# don''t unlink stale pid files, racy without non-portable locking...
end
--
1.7.5.4
2015 Jun 29
0
Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...el' but got '$label'"
> > unless $label eq "newlabel";
> >
> > +# Setting btrfs UUID
> > +eval {
> > + $g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
> > +};
> > +# FIXME: ignore ESRCH
>
> What is ESRCH about?
The problem is every time I got a ESRCH here.
I have no idea about this.
Can we just ignore it by:
} elsif ($err == Errno::ESRCH()) {
;
} else {
die $@;
}
>
> > +my $err = $g->last_errno ();
> > +
> > +if ($err == 0) {
> > +...
2015 Aug 24
3
[PATCH 1/3] ocaml: dynamically generate the content of Guestfs.Errno
...rator/ocaml.ml
index 05c7456..7742209 100644
--- a/generator/ocaml.ml
+++ b/generator/ocaml.ml
@@ -30,6 +30,14 @@ open Structs
open C
open Events
+(* List of errnos to expose on Guestfs.Errno. *)
+let ocaml_errnos = [
+ "EINVAL";
+ "ENOTSUP";
+ "EPERM";
+ "ESRCH";
+]
+
(* Generate the OCaml bindings interface. *)
let rec generate_ocaml_mli () =
generate_header OCamlStyle LGPLv2plus;
@@ -132,10 +140,12 @@ val last_errno : t -> int
which you can use to test the return value of {!Guestfs.last_errno}. *)
module Errno : sig
- val errno_EIN...
2007 Jan 09
1
DO NOT REPLY [Bug 4327] New: Sudden rsync errors
...sigreturn(0xffffffffffffffff) = -1 EINTR (Interrupted system call)
31556 rt_sigaction(SIGUSR1, {SIG_IGN}, NULL, 8) = 0
31556 rt_sigaction(SIGUSR2, {SIG_IGN}, NULL, 8) = 0
31556 wait4(31557, 0x7fffea7a374c, WNOHANG, NULL) = -1 ECHILD (No child
processes)
31556 kill(31557, SIGUSR1) = -1 ESRCH (No such process)
31556 kill(31622, SIGUSR1) = -1 ESRCH (No such process)
31556 write(2, "rsync error: unexplained error ("..., 73) = 73
31556 write(2, "\n", 1) = 1
31556 exit_group(255) = ?
[root@blowingrock homeguage]# tail -n 70...
2019 Oct 29
2
[PATCH v2 12/15] drm/amdgpu: Call find_vma under mmap_sem
...erptr;
> struct vm_area_struct *vma;
> struct hmm_range *range;
> @@ -796,25 +797,14 @@ int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages)
> uint64_t *pfns;
> int r = 0;
>
> - if (!mm) /* Happens during process shutdown */
> - return -ESRCH;
> -
> if (unlikely(!mirror)) {
> DRM_DEBUG_DRIVER("Failed to get hmm_mirror\n");
> - r = -EFAULT;
> - goto out;
> + return -EFAULT;
> }
>
> - vma = find_vma(mm, start);
> - if (unlikely(!vma || start < vma->vm_start)) {
> - r = -EFA...
2019 Nov 29
1
[PATCH] ocaml: add handling for errno ENOSPC
---
generator/OCaml.ml | 1 +
1 file changed, 1 insertion(+)
diff --git a/generator/OCaml.ml b/generator/OCaml.ml
index 92a913015..363aa5232 100644
--- a/generator/OCaml.ml
+++ b/generator/OCaml.ml
@@ -41,6 +41,7 @@ let ocaml_errnos = [
"ESRCH";
"ENOENT";
"EROFS";
+ "ENOSPC";
]
(* Generate the OCaml bindings interface. *)
--
2.21.0
2006 Apr 12
1
[PATCH] bug in check_parent_exists() in ssh-agent.c
...he ssh-agent
process will exit. The obvious symptom is that "ssh-add -l" executed
in the child shell works if you are quick enough, but doesn't work 10
seconds later.
Two potential fixes come to mind:
A: if (parent_pid != -1 && kill(parent_pid, 0) < 0 && errno == ESRCH)
B: if (parent_pid != -1 && getppid() != parent_pid)
Fix A assumes that errno == ESRCH means that the process really doesn't
exist, and that other errno values mean other things. This assumption
would fail in a unix-like OS that, for security reasons, decides not to
let processes lea...
2011 May 30
0
Quota Problem with Samba 3.5.8
...sys_get_quota)
sys_get_vfs_quota() failed for mntpath[/storage] bdev[/dev/drbd0] qtype[4] id[1800]: Operation not permitted
and here is what stracing the samba daemon when doing "du" in smbclient shows:
...
quotactl(Q_GETQUOTA|USRQUOTA, "/dev/drbd0", 15005, 0xbfb26cf8) = -1 ESRCH (No such process)
quotactl(Q_GETQUOTA|USRQUOTA, "/dev/drbd0", 15005, 0xbfb26d18) = -1 ESRCH (No such process)
quotactl(Q_V1_GETQUOTA|USRQUOTA, "/dev/drbd0", 15005, 0xbfb26d1c) = -1 EPERM (Operation not permitted)
...
However stracing repquota does open /storage/aquota.user whi...
2019 Oct 28
0
[PATCH v2 12/15] drm/amdgpu: Call find_vma under mmap_sem
...truct *mm;
unsigned long start = gtt->userptr;
struct vm_area_struct *vma;
struct hmm_range *range;
@@ -796,25 +797,14 @@ int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages)
uint64_t *pfns;
int r = 0;
- if (!mm) /* Happens during process shutdown */
- return -ESRCH;
-
if (unlikely(!mirror)) {
DRM_DEBUG_DRIVER("Failed to get hmm_mirror\n");
- r = -EFAULT;
- goto out;
+ return -EFAULT;
}
- vma = find_vma(mm, start);
- if (unlikely(!vma || start < vma->vm_start)) {
- r = -EFAULT;
- goto out;
- }
- if (unlikely((gtt->userflags &am...
2006 Dec 19
0
connection unexpectedly closed
...= 81
> write(2, "\n", 1
> ) = 1
> rt_sigaction(SIGUSR1, {SIG_IGN}, NULL, 8) = 0
> rt_sigaction(SIGUSR2, {SIG_IGN}, NULL, 8) = 0
> waitpid(20773, 0xbff0f918, WNOHANG) = -1 ECHILD (No child processes)
> kill(20773, SIGUSR1) = -1 ESRCH (No such process)
> kill(20774, SIGUSR1) = -1 ESRCH (No such process)
> write(2, "rsync error: error in rsync prot"..., 89rsync error: error in rsync protocol data stream (code 12) at io.c(463) [generator=2.6.8]) = 89
> write(2, "\n", 1
> )...
2012 Dec 04
2
403 Forbidden from nginx when unicorn started in debug mode
...ActiveRecord::Base.connection.disconnect!
end
old_pid = "#{shared_path}/pids/unicorn.aceleathergoods.pid.oldbin"
if File.exists?(old_pid) && server.pid != old_pid
begin
Process.kill("QUIT", File.read(old_pid).to_i)
rescue Errno::ENOENT, Errno::ESRCH
# someone else did our job for us
end
end
end
after_fork do |server, worker|
if defined?(ActiveRecord::Base)
ActiveRecord::Base.establish_connection
end
end
2014 Oct 10
1
fixes for quota support on NetBSD
....qk_idtype = group ? QUOTA_IDTYPE_GROUP : QUOTA_IDTYPE_USER;
qk.qk_id = group ? root->gid : root->uid;
qk.qk_objtype = bytes ? QUOTA_OBJTYPE_BLOCKS : QUOTA_OBJTYPE_FILES;
- if (quota_get(root->qh, &qk, &qv) != 0) {
+ if (quota_get(qh, &qk, &qv) != 0) {
if (errno == ESRCH) {
fs_quota_root_disable(root, group);
return 0;
}
i_error("quotactl(Q_GETQUOTA, %s) failed: %m",
root->mount->mount_path);
- return -1;
+ ret = -1;
+ goto end;
}
*value_r = qv.qv_usage * DEV_BSIZE;
*limit_r = qv.qv_softlimit * DEV_BSIZE;
- return 1;
+...
2016 Feb 26
1
Displaying mountables in the error output of guestfish etc
...ble in fact, but a public API that we
commit to.
char *device = guestfs_mountable_device (g, const char *mountable);
char *volume = guestfs_mountable_volume (g, const char *mountable);
If a mountable doesn't have a (sub-)volume, the second API should
probably return a well-defined errno (ESRCH or ENOENT?).
The code in fish/options.c then just has to:
foreach fs in guestfs_list_filesystems:
device = guestfs_mountable_device fs
volume = guestfs_mountable_volume fs
if guestfs_mountable_volume fs returned well defined errno:
printf "-m %s" device
else...
2011 May 12
6
[Bug 1905] New: check_parent_exists() logic does not cover all cases
...he ssh-agent
process will exit. The obvious symptom is that "ssh-add -l" executed
in the child shell works if you are quick enough, but doesn't work 10
seconds later.
Two potential fixes come to mind:
A: if (parent_pid != -1 && kill(parent_pid, 0) < 0 && errno == ESRCH)
B: if (parent_pid != -1 && getppid() != parent_pid)
Fix A assumes that errno == ESRCH means that the process really doesn't
exist, and that other errno values mean other things. This assumption
would fail in a unix-like OS that, for security reasons, decides not to
let processes lea...