couch_file:process_info can return `undefined`
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/b65bf015 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/b65bf015 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/b65bf015 Branch: refs/heads/master Commit: b65bf015baf0f676a15ebb66dee16498c385a5ad Parents: 628a0f4 Author: ILYA Khlopotov <iil...@ca.ibm.com> Authored: Tue May 24 17:33:57 2016 -0700 Committer: ILYA Khlopotov <iil...@ca.ibm.com> Committed: Tue May 24 17:33:57 2016 -0700 ---------------------------------------------------------------------- src/couch_file.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/b65bf015/src/couch_file.erl ---------------------------------------------------------------------- diff --git a/src/couch_file.erl b/src/couch_file.erl index d2b3960..8346b02 100644 --- a/src/couch_file.erl +++ b/src/couch_file.erl @@ -664,7 +664,7 @@ is_idle(#file{is_sys=false}) -> end. -spec process_info(CouchFilePid :: pid()) -> - {Fd :: pid() | tuple(), FilePath :: string()}. + {Fd :: pid() | tuple(), FilePath :: string()} | undefined. process_info(Pid) -> {dictionary, Dict} = erlang:process_info(Pid, dictionary),